home *** CD-ROM | disk | FTP | other *** search
/ BlastDOS / pcANYWHERE 2.0.zip / Disk 2.IMA / NETUNINS.IN$ / NETUNINS.INF
INI File  |  1995-08-11  |  5KB  |  175 lines

  1. ; pcANYWHERE network user uninstall script
  2.  
  3. [InstallVersion]
  4. 3.3
  5.  
  6. [process]
  7. switch91 = IsWinVerGTE(0320)                ;switch91=TRUE if Win 4.0
  8.  
  9. SetActiveCopy(PCACopy, netunins.inf)
  10. Bitmaps(pix)
  11. ResetTarget(SourceTarget)
  12. switch01 = MessageCancel(StartMsg)  ;ask user if ok to uninstall
  13. #ifnot(switch01)
  14.     exit()
  15. #endif
  16. AllowIntlChars()
  17.  
  18. FullUninstall
  19. switch85=Exists(CheckAuto)               ;check if autoexec.bat exists
  20. #if(switch85)                                 ;if so,
  21.     ModifyTextFile(Autoexec)         ;remove TSR from autoexec.bat
  22. #endif
  23. RemoveFromLoad(RemHost)             ;remove winhost.exe from win.ini
  24. DelFromIni(AWVXDS)                  ;remove pcAW's VxDs
  25. DisableUtils()
  26. UnCopy()
  27. groups()                            ;remove group
  28. EnableUtils()
  29.  
  30. Delete(PcawIni)
  31.  
  32. #if(switch91)
  33.     EndRebootOnly(ByeRestart)
  34. #else
  35.     End(bye)
  36. #endif
  37. End()
  38.  
  39.  
  40. ;-----------------------------------------------------------------------
  41. ; Copy
  42. ;-----------------------------------------------------------------------
  43.  
  44. [PCACopy]
  45. CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    100, Y, N, Y
  46.  
  47.  
  48. ;-----------------------------------------------------------------------
  49. ; Delete.
  50. ;-----------------------------------------------------------------------
  51.  
  52. [BackupFiles]
  53. SYSTEM.IN0,       SOURCE
  54. SYSTEM.INI,       SOURCE
  55. SYSTEM.$AW,       WINDOWS
  56. WIN.IN0,          SOURCE
  57. WIN.INI,          SOURCE
  58. WIN.$AW,          WINDOWS
  59. AUTOEXEC.BA0,     SOURCE
  60. AUTOEXEC.BAT,     SOURCE
  61.  
  62. [Leftovers]
  63. AWINST.DLL,       WINDOWS
  64. AWLPFUNC.DLL,     SYSTEM
  65.  
  66. [AWDrivers]
  67. AW_VCD.386,       SYSTEM
  68. AWDOS.386,        SYSTEM
  69. AWDSP*.DLL,       SYSTEM
  70. VPCAW.386,        SYSTEM
  71.  
  72. ;-----------------------------------------------------------------------
  73. ; Groups.
  74. ;-----------------------------------------------------------------------
  75. [groups]
  76. "pcANYWHERE",       winaw.grp
  77.  
  78. [pcANYWHERE]
  79. "pcAnywhere for Windows",winaw.exe,        copy.BaseFiles
  80. "pcAnywhere Host Install", "install.exe /s", copy.BaseFiles
  81. "Remove pcAnywhere",     "install.exe /u", copy.BaseFiles
  82.  
  83. ;-----------------------------------------------------------------------
  84. ; Dialog Boxes.
  85. ;-----------------------------------------------------------------------
  86. [bye]
  87. caption = "pcANYWHERE -- Uninstall Complete"
  88. "This concludes the removal of pcANYWHERE for Windows."
  89. " "
  90. "Please select one of the exit options."
  91. " "
  92.  
  93. [ByeRestart]
  94. caption = "pcANYWHERE -- Uninstall Complete"
  95. "This concludes the removal of pcANYWHERE for Windows."
  96. " "
  97.  
  98. [InformAboutBackup]
  99. caption = "Startup Files"
  100. "Your startup files from before the installation of pcANYWHERE have been placed in their original directories for your reference, with the extension .PCA."
  101. " "
  102. [errors]
  103. noprev  = "Symantec Install for Windows is already running!"
  104.  
  105. [cancel]
  106. caption = "pcANYWHERE"
  107. text     = "Are you sure you want to exit?"
  108.  
  109. ;-----------------------------------------------------------------------
  110. ; Ini Modifications.
  111. ;-----------------------------------------------------------------------
  112.  
  113. [AWVXDS]
  114. IniName = system.ini
  115. SectionName = 386Enh
  116. device=*vpcaw.386*
  117. device=*awdos.386*
  118.  
  119. [PcawIni]
  120. pcaw.ini, windows
  121.  
  122. ;-----------------------------------------------------------------------
  123. ; Shell Functions.
  124. ;-----------------------------------------------------------------------
  125.  
  126. [pix]
  127. color = %s\winaw.bmp
  128.  
  129. ;-----------------------------------------------------------------------
  130. ; Autoexec
  131. ;-----------------------------------------------------------------------
  132. [autoexec]
  133. caption     = "pcANYWHERE -- Modify AUTOEXEC.BAT File"
  134. text1     = "The following line(s) need to be removed from your autoexec.bat file:"
  135. FileSpec   = c:\autoexec.bat
  136. filetype = autoexec
  137. Rem1 = "rem"
  138. EditCaption = "Edit AUTOEXEC.BAT File"
  139. EditText = "Make changes to the file as desired.  When complete, press FINISH.  To cancel all current and previous edits, press CANCEL EDIT."
  140. AddPath     =
  141. DelItems   = AutoexecDelItems
  142. AddItems   =
  143.  
  144. [AutoexecDelItems]
  145. *awhost*
  146.  
  147. ;-----------------------------------------------------------------------
  148. ; Misc Uninstall Functions.
  149. ;-----------------------------------------------------------------------
  150. [RemHost]
  151. winhost.exe
  152.  
  153. [RemoveDir]
  154. dll    = awinst.dll
  155. function  = RemoveDir
  156. Directory = SOURCE
  157.  
  158. [SetFull]
  159. dll         = awinst.dll
  160. function  = SetFullUninstall
  161.  
  162. [SourceTarget]
  163. reset = TARGET
  164. location = %s, SOURCE
  165.  
  166. [StartMsg]
  167. caption = "pcANYWHERE Uninstall"
  168. "This procedure will remove the pcANYWHERE group and icons and all pcANYWHERE Windows files from your system."
  169. " "
  170. "Select ""OK"" to continue or ""Cancel"" to exit now."
  171. " "
  172.  
  173. [CheckAuto]
  174. c:\autoexec.bat
  175.